<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
function chk(){
	 location.href="chk?id="+tasteHome.food_id.value; 
}
/* function checkMe(){
	var id=join.taste_id.value;
	var pw=join.member_pw.value;
	var name=join.member_name.value;
	var mobile=join.member_mobile.value;
	var email=join.member_email.value;

	if(id.length == 0){
		alert("아이디를 입력하세요");
		return false;
	}else if(pw.length == 0){
		alert("비밀번호를 입력하세요");
		return false;
	}else if(name.length == 0){
		alert("이름을 입력하세요");
		
		return false;
	}else if(mobile.length == 0){
		alert("전화번호를 입력하세요");
		
		return false;
	}else if(email.length == 0){
		alert("이메일을 입력하세요");		
		return false;
	}
  if (document.join.member_pw.value != document.join.member_pw1.value){
	  alert("비밀번호 확인해라");
	return false;  
    
  }
 */
</script>
</head>

<body>
<h1>마아아앗 지이이입!!!</h1>
<form action="joinprocess" method="get" name=tasteHome>
	<table>
			<tr>
				<td>아이디</td><td><input type="text" name="food_id"></td><td><input type="button" value="중복확인" onclick="chk()"></td>
			</tr>
			<tr>
				<td>패스워드</td><td><input type="password" name="food_pw"></td>
			</tr>
			<tr>
				<td>이름</td><td><input type="text" name="food_name"></td>
			</tr>
			<tr>
				<td>지역</td><td><input type="text" name="food_area1"></td>
			</tr>
			<tr>
				<td>동</td><td><input type="text" name="food_area2"></td>
			</tr>
			<tr>
				<td>주소</td><td><input type="text" name="food_addr"></td>
			</tr>
			<tr>
				<td>카테고리1</td><td><select name="food_category" size="1">
					<option value="한식" selected="selected">한식</option>
					<option value="중식">중식</option>
					<option value="양식">양식</option>
					<option value="일식">일식</option>
					<option value="기타">기타</option>
				</select></td>
			</tr>
			<tr>
				<td>전화번호</td><td><input type="text" name="food_tel"></td>
			</tr>
			<tr>
				<td>영업시간</td><td><input type="text" name="food_time"></td>
			</tr>
			<tr>
				<td>평균가격(2인)</td><td><input type="text" name="food_price"></td>
			</tr>
			<tr>
				<td>주차</td><td><input type="text" name="food_park" value="예)가능(시간) or 불가능"></td>
			</tr>
			<tr>
				<td>휴일</td><td><input type="text" name="food_holiday"></td>
			</tr>
			<tr>
				<td>상세설명</td><td><input type="text" name="food_explanation"></td>
			</tr>
			<tr>
				<td>상세 이미지</td><td><input type="file" name="food_image"></td>
			</tr>
			<tr>
				<td>지도</td><td><input type="file" name="food_map"></td>
			</tr>
			<tr>
				<td><input type="submit" value="회원가입완료"></td><td><input type="button" value="가입취소" onclick="location.href='/food/main'"></td>
			</tr>
			
			


		</table>
</form>

</body>
</html>